<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>模块菜单管理</title>
<script src="../Public/js/common.js" type="text/javascript"></script>
<script src="../Public/js/jquery-1.6.4.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../Public/css/main.css" />
<script type="text/javascript">
<!--
jQuery(function($){ 
	//**************************************************************** 
	//* 名　　称：deletebtn
	//* 功    能：删除信息
	//* 作    者: 章家明
	//* 入口参数：无
	//* 出口参数：无
	//***************************************************************** 
	$("#deletebtn").click(function(){
		var selNum = $("input[type='checkbox']:checkbox:checked").size();
		if (0 == selNum){
			alert('对不起,请选择要删除的信息!')
			return false;
		}
		if(window.confirm('请确认是否删除？')){
			var myform = document.myform;
			myform.action = "__URL__/delete";
			myform.submit();
		}
	
	})
	
	
	//**************************************************************** 
	//* 名　　称：editArt()
	//* 功    能：全选 项的值 
	//* 作    者: 章家明
	//* 入口参数：无
	//* 出口参数：无
	//***************************************************************** 
	$("#editbtn").click(function(){ 
		var selNum = $("input[type='checkbox']:checkbox:checked").size();
		//判断不能多选
		
		if (selNum > 1){
			alert('对不起，只能选择一条信息进行编辑！');
			return false;
		}else if (0 == selNum){
			alert('对不起,请选择一条信息进行编辑!')
			return false;
		}else {
			var ids=""; 
			//$(":checkbox:checked").each(function(){ 
			$("input[type='checkbox']:checkbox:checked").each(function(){ 
				//ids+=$(this).val()+","
				ids = $(this).val();
			}) 
			popFullDialog('__URL__/edit/func_id/'+ids,name);
		}
		
	}) 
}) 

//-->
</script>
</head>
<body>
<form action="__URL__/index" name="myform" method="post">
<table>
	<tr>
		<td>福建招商平台>>模块菜单管理</td>
	</tr>
	<tr>
		<td>
			关键词：<input type="text" name="keywords" />
			类型：<select name="ftype">
				 	<option value="title">标题</option>
				 	<option value="sub_title">副标题</option>
				 	<option value="sec_name">所属单元</option>
				 </select>
			<input type="submit" value="查询" />
		</td>
	</tr>
</table>
<br/>
<table>
<thead> 
	<tr>
		<td colspan="8" class="tab_nav">
			<a href="javascript:void(0)" onclick="popFullDialog('__URL__/add','添加信息');return false;"><span class="tab_nav_add">添加</span></a>
			<a href="javascript:void(0)" id="deletebtn"><span class="tab_nav_del">删除</span></a>
			<a href="javascript:void(0)" id="editbtn"><span class="tab_nav_edit">编辑</span></a>
			<span class="tab_nav_count">统计</span>
			<span class="tab_nav_order">排序</span>
		</td>
	</tr>
</thead> 
<thead> 
	<tr>
		<th><input onclick="if(this.checked==true) { checkAll('func_id'); } else { clearAll('func_id'); }" type="checkbox" value="" id="func_id" name="func_id" title="全选/取消"/></th>
		<th>模块名称</th>
		<th>Url路径</th>
		<th>层级</th>
		<th>类型</th>
		<th>状态</th>
		<th>打开方式</th>
		<th>排序</th>
		<th>管理</th>
	</tr>
</thead> 
<tbody id="tab">

<volist name="ulist" id="sysFunc" key="i">
	<tr>
		<td><input type="checkbox" value="{$sysFunc['func_id']}" id="func_id" name="func_id[{$i}]" /></td>
		<td><a href="__URL__/edit/func_id/{$sysFunc['func_id']}">{$sysFunc['func_name']}</a></td>
		<td>{$sysFunc['url']}</td>
		<td>{$sysFunc['level']}</td>
		<td>{$sysFunc['type']}</td>
		<td>{$sysFunc['status']}</td>
		<td>{$sysFunc['open_type']}</td>	
		<td>{$sysFunc['order_num']}</td>	
		<td></td>		
	</tr>
</volist>
</tbody> 
<tfoot>
<tr>
<td><input onclick="if(this.checked==true) { checkAll('func_id'); } else { clearAll('func_id'); }" type="checkbox" value="" name="func_id" title="全选/取消"/></td>
<td colspan="8">
<div class="grayr"><span class="disabled"> < </span><span class="current">1</span><a href="#?page=2">2</a><a href="#?page=3">3</a><a href="#?page=4">4</a><a href="#?page=5">5</a><a href="#?page=6">6</a><a href="#?page=7">7</a>...<a href="#?page=199">199</a><a href="#?page=200">200</a><a href="#?page=2"> > </a></div>
<!--
<div id="page">
<a href="">首　页</a><a href="">上一页</a><a href="">下一页</a><a href="">末　页</a></div>-->
</td>
</tr>
</tfoot>
</table>

<script type="text/javascript">
<!--
//表格单双行颜色与鼠标移动效果
var Ptr=document.getElementById("tab").getElementsByTagName("tr");
function $() {
    for (i=1;i<Ptr.length+1;i++) { 
    Ptr[i-1].className = (i%2>0)?"t1":"t2"; 
    }
}
window.onload=$;
for(var i=0;i<Ptr.length;i++) {
    Ptr[i].onmouseover=function(){
    this.tmpClass=this.className;
    this.className = "t3";
    
    };
    Ptr[i].onmouseout=function(){
    this.className=this.tmpClass;
    };
}
//-->
</script>
</form>
</body>
</html>